﻿@model Tau.ViewModels.AddEditPage

<script language="javascript" type="text/javascript">
    showProgress();
</script>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("AddParent", "PageAdmin", FormMethod.Post, new { id = "addParentForm" }))
{
    @Html.ValidationSummary(true)

    <fieldset>
       
        Title: @Html.TextBoxFor(model => model.EditingPage.PageTitle)
        @Html.ValidationMessageFor(model => model.EditingPage.PageTitle)

		<br />
		<input type="button" name="save" value="save" onclick="submitForm();" />
     
    </fieldset>
}

<script type="text/javascript">
    function submitForm() {
            showProgress();
            $("#addParentForm").submit();
    }

    $().ready(function () {
        hideProgress();
    });

</script>

